﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Shared/MainPage.Master" CodeBehind="ReadRecordForSalsorList.aspx.cs" Inherits="Runda.CMS.Portal.ContractFollowUp.ReadRecordForSalsorList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Assembly="RadCalendar.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
    <script src="../Content/global.js" type="text/javascript"></script>     
    <link href="../Content/global.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Menu/Menu.css" rel="stylesheet" type="text/css" /> 
    <link href="../Content/Find/find.css" rel="stylesheet" type="text/css" />
   <link href="../Content/Grid/Grid.css" rel="stylesheet" type="text/css" /> 
    <script src="../Content/Grid/map_grid.js" type="text/javascript" ></script>
    <link href="../Content/Pager.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../Content/jquery-1.3.2.js"></script>
    <script type="text/javascript" src="../Content/Bussiness/datasync.js"></script>         
    <script src="../Content/lookup/Lookup.js" type="text/javascript"></script>

    <link href="../Content/Form/form.css" rel="Stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="server">

<div class="Container">         
        <table id="appFind" class="find" cellspacing="0" cellpadding="0" border="0"> 
            <tbody>
                <tr height="23">
                    <td class="wizHead" colspan="7">
                        <table style="table-layout: fixed; font-size: 9pt" cellspacing="0" cellpadding="0" width="100%" height="100%">
                            <colgroup>
                                <col>
                                <col width="60">
                                <col width="60"> 
                                <tr><td style="color:#ffffff"><b>快速查询</b></td><td class="icMenu mnuRight" noWrap></td></tr>
                        </table>
                    </td>
                </tr>
                <tr id="__appFind_trQuery" height="40">
                    <td class="wizBox1" colspan="7">
                    <table id="__appFind_tbQuery1" style="TABLE-LAYOUT: fixed; FONT-SIZE: 9pt" height="100%" cellSpacing="0" cellPadding="0" width="100%">
                    <col>
                    <tr>
                        <td align="right"> 序列号：</td>
                        <td><asp:TextBox ID="txtInstrumentSerialNum" runat="server" Width="400px" CssClass="input"></asp:TextBox></td>
                        <td align="right">客户：</td>
                        <td>
                              <table cellpadding="0" cellspacing="0" style="table-layout: fixed;" width="100%">
                                                                    <tr>
                                                                        <td nowrap>
                                                                            <div class="lu" detailpage="/SyncManage/CustomerInfo.aspx?CustomerID=">
                                                                                <span id="hiddenuserName" runat="server" class="lui" oid="" onclick="openlui();">
                                                                                </span>&nbsp;</div>
                                                                        </td>
                                                                        <td style="text-align: right;" width="25">
                                                                            <img class="lu2" features="dialogWidth:450px;dialogHeight:500px;resizable:yes;center:yes;status:no;help:no;scroll:no;location:no;" id="lucustomer"
                                                                                lookupbrowse="" lookupclass="" lookupcustom="/lookup/selectcustomeroflookup.aspx?title=customer"
                                                                                lookupstyle="single" src="../Images/btn_off_lookup.gif" /><input id="hiddenUserID"
                                                                                    runat="server" class="lu" maptype="lu" name="customerGUID" type="hidden" value="" />
                                                                        </td>
                                                                    </tr>
                                                                </table>
                        </td>
                        </tr>
                        <tr>
                            <td align="right">
                                开始日期：
                            </td>
                            <td>
                             <rad:RadDateTimePicker ID="RecordDateFrom" runat="server" Culture="Chinese (People's Republic of China)"
                                                                    Skin="WebBlue" Width="100%" Enabled="false">
                                                                    <TimeView Culture="Chinese (People's Republic of China)" Skin="WebBlue"><HeaderTemplate>
                                                                    Time Picker
                                                                    </HeaderTemplate>
                                                                    <TimeTemplate>
                                                                    <a id="A1" runat="server" href="#" onclick="return false"></a>
                                                                    </TimeTemplate>
                                                                    </TimeView>

                                                                    <DateInput Skin="WebBlue">
                                                                    </DateInput>
                                                                    
                                                                    <Calendar  Skin="WebBlue">  
                                                                        <SpecialDays>  
                                                                            <rad:RadCalendarDay Date="" Repeatable="Today">  
                                                                                <ItemStyle CssClass="" />  
                                                                            </rad:RadCalendarDay>  
                                                                        </SpecialDays>  
                                                                    </Calendar>  


                                                                </rad:RadDateTimePicker>       
                            </td>
                            <td align="right">
                                截止日期：
                            </td>
                            <td>
                                     <rad:RadDateTimePicker ID="RecordDateTo" runat="server" Culture="Chinese (People's Republic of China)"
                                                                    Skin="WebBlue" Width="100%" Enabled="false">
                                                                    <TimeView Culture="Chinese (People's Republic of China)" Skin="WebBlue"><HeaderTemplate>
                                                                    Time Picker
                                                                    </HeaderTemplate>
                                                                    <TimeTemplate>
                                                                    <a id="A2" runat="server" href="#" onclick="return false"></a>
                                                                    </TimeTemplate>
                                                                    </TimeView>

                                                                    <DateInput Skin="WebBlue">
                                                                    </DateInput>
                                                                    
                                                                    <Calendar  Skin="WebBlue">  
                                                                        <SpecialDays>  
                                                                            <rad:RadCalendarDay Date="" Repeatable="Today">  
                                                                                <ItemStyle CssClass="" />  
                                                                            </rad:RadCalendarDay>  
                                                                        </SpecialDays>  
                                                                    </Calendar>  


                                                                </rad:RadDateTimePicker>     
                            </td>
                        <td><asp:Button ID="btnSearch" runat="server" Text="查找" CssClass="button" 
                                onclick="btnSearch_Click"/></td></tr></table>
                    
                    </td>
                    </tr>
            </tbody>
    </table>            
</div>

 <div class="Container">
         
         <table class="mnubar" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td style="padding-left: 5px" nowrap>
                        <b>仪器读数列表</b>
                    </td>
                    <td style="padding-left: 5px">
                        <img src="../Content/Grid/separator.gif">
                    </td>
                    <td class="icMenu" nowrap>                   
                        
                    </td>       
                      <td class="icMenu mnuRight" nowrap>                     
                    </td>           
                </tr>
            </tbody>
        </table>       
         
        <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
        </div>
             <asp:Repeater ID="RepeaterReadRecord" runat="server"  onitemcommand="RepeaterReadRecord_ItemCommand">
                 <HeaderTemplate>
                    <table id="grid" class="grid" cellspacing="0" cellpadding="0">
            <tbody>
                <tr class="header">
                 <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">序列号</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                    <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">仪器</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                      <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">客户</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                    <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">所在区域</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                    <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">区域日读数</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>
                     <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">日读数</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                     <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">时间</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                       <td align="middle"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">记录人</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                  
                    <td width="14">
                        <asp:ImageButton ID="imgbtnRefersh" CommandName="refersh" runat="server" ImageUrl="../Content/Grid/grid_Refresh.gif" AlternateText="刷新列表"/> 
                    </td>
                </tr>
                 </HeaderTemplate>
                 <ItemTemplate>
                  <tr class="data"   onclick="handleClick()" >
                    <td><%#Eval("SerialNum")%></td> 
                    <td><%#Eval("InstrumentName")%></td> 
                    <td><%#Eval("CustomerName")%></td> 
                    <td><%#Eval("CustomerArea")%></td> 
                    <td><%#Eval("Num")%></td> 
                    <td><%# Eval("DailyNum")%></td>
                     <td><%# Eval("RecordDate")%></td>
                     <td><%# Eval("RecorderName")%></td>
                    
                    <td></td>
                </tr>
                 </ItemTemplate>
                 <FooterTemplate>
                    </tbody>
                </table>  
                 </FooterTemplate>
             </asp:Repeater>    
               <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator"  
                            CurrentPageButtonClass="cpb" 
                            CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条" 
                            FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" 
                            ShowCustomInfoSection="Left" Width="100%" LayoutType="Table"  
                            SubmitButtonClass="but" SubmitButtonText="转到" OnPageChanged="AspNetPager1_PageChanged">
                        </webdiyer:AspNetPager>    
         </div>
          
</asp:Content>